package com.xiaocg.observer;

public class UserObserver implements Observer{

    private String name;

    public UserObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name+"接收"+message+"::更新了");
    }

}
